package com.lyf.scm.plan.insfrastructure.db.mapper;


import com.lyf.scm.plan.insfrastructure.db.dataobject.SalesPlanOtherDifferinDO;
import com.lyf.scm.plan.insfrastructure.db.dataobject.SalesPlanSelectDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * description:
 * 其他渠道计划_目标与销售计划差异（scm_sales_plan_other_differin）数据库访问层
 *
 * @author: huangtao
 * @data: 2020/7/31
 */
public interface SalesPlanOtherDifferinMapper {


    /**
     * 根据分页后的参数查询其他渠道计划_目标与销售计划差异(周期)
     * @param salesPlanSelect
     * @return
     */
    List<SalesPlanOtherDifferinDO> listWeekBySelective(SalesPlanSelectDO salesPlanSelect);


    /**
     * 查询指标
     *
     * @param salesPlanOtherDifferinDO
     * @return {@link List<SalesPlanOtherDifferinDO>}
     */
    List<SalesPlanOtherDifferinDO> listSalesAndTarget(SalesPlanOtherDifferinDO salesPlanOtherDifferinDO);
    /**
     * 按条件查询其他渠道计划差异
     * @param salesPlanSelect
     * @return
     */
    List<SalesPlanOtherDifferinDO> listAllByCycles(SalesPlanSelectDO salesPlanSelect);

    /**
     * 根据搜索条件查询出所有的数据
     *
     * @param dtoToDO dto做
     * @return {@link List<SalesPlanOtherDifferinDO>}
     */
    List<SalesPlanOtherDifferinDO> listAllByCondition(SalesPlanSelectDO dtoToDO);

    /**
     * 删除对应标识的数据
     *
     * @param opSign
     */
    void delete(@Param("opSign") String opSign);
    void deleteByOpSign(String opSign);
}
